<!-- nav.component.html -->
<nav class="navbar navbar-inverse" role="navigation">
    <div class="container-fluid">
        <div class="navbar-header">
            <a class="navbar-brand" href="#">Mentor of Demand</a>
        </div>
        <div>
            <ul class="nav navbar-nav">
                <li routerLinkActive="open" *ngIf="messageService.islogin && messageService.usertype !=1"><a routerLink="notifications">Notifications</a></li>
                <li routerLinkActive="open" *ngIf="messageService.usertype != 3"><a routerLink="searchtrainings">Search Trainings</a></li>
                <li routerLinkActive="open" *ngIf="messageService.usertype == 1"><a routerLink="technologies">Technologies</a></li>
                <li routerLinkActive="open " *ngIf="messageService.islogin && messageService.usertype !=1"><a routerLink="currenttrainings">Current Trainings</a></li>
                <li routerLinkActive="open " *ngIf="messageService.islogin && messageService.usertype !=1"><a routerLink="completedtrainings">Completed Trainings</a></li>
                <li routerLinkActive="open " *ngIf="messageService.islogin && messageService.usertype == 3"><a routerLink="editskills">Edit Skills</a></li>
                <li routerLinkActive="open " *ngIf="messageService.islogin"><a routerLink="account">My Account</a></li>
                <li routerLinkActive="open " *ngIf="messageService.islogin"><a href="javascript:void(0);" (click)="logout()">Logout</a></li>
                <li routerLinkActive="open" *ngIf="!messageService.islogin"><a routerLink="login">Login</a></li>
                <li routerLinkActive="open" *ngIf="!messageService.islogin"><a routerLink="register">Register</a></li>
            </ul>
        </div>
    </div>
</nav>